
package com.be.beadmin.basicData.repository;

import com.be.beadmin.basicData.entity.Plant;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author chenwei
* @date 2022-12-22
**/
public interface PlantRepository extends JpaRepository<Plant, String>, JpaSpecificationExecutor<Plant> {

    Plant findPlantByIdAndDelete(String id, Integer delete);


    List<Plant> findPlantByPlantCodeAndDelete(String id, Integer delete);

    Plant findPlantById(String id);

}